# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-azure-mgmt-monitor
_pkgname=azure-mgmt-monitor
pkgver=6.0.2
pkgrel=4
pkgdesc='Microsoft Azure Monitor Client Library for Python.'
arch=('any')
url='https://pypi.org/project/azure-mgmt-monitor/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.zip")
sha512sums=('a1c0f3046f0ceb954c3d3f85cda67fb903289bdac49d82fb6f47f54de9f0512067dcd407832be346333eb4c7ffcaf14ab8618a467ecb61a69f0e7180e48da01c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

